package com.echoplots.jdbctemplate.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.echoplots.jdbctemplate.dao.MasterUserMapper;
@Repository("masterUserMapper")
public class MasterUserMapperImpl implements MasterUserMapper{
	@Autowired
	@Qualifier("masterJdbcTemplate")
	private JdbcTemplate jdbcTemplate;

	@Override
	public List<Map<String, Object>> getAllUsers() {
		 return this.jdbcTemplate.queryForList("select * from user");
	}
	
}
